<template>
    <el-form-item>
        <el-cascader :options="options" v-model="selectedOptions" :props="defaultProps" @change="handleChange">
        </el-cascader>
    </el-form-item>
</template>

<script>
export default {
  name: "SortTree",
  data: {
    options: [],
    selectedOptions: [],
    defaultProps: { value: "id" }
  },
  methods: {
    handleChange(value) {
      console.log(value[value.length - 1]);
    }
  }
};
</script>